import tkinter
import numpy


top = tkinter.Tk()

top.title('TF.IDF计算实验')
top.geometry('550x350')

lab1 = tkinter.Label(top, text = "s1")
lab1.place(x = 25, y = 10)
en1 = tkinter.Entry(top, width = 45)
en1.place(x = 60, y = 10)

lab2 = tkinter.Label(top, text = "s2")
lab2.place(x = 25, y = 45)
en2 = tkinter.Entry(top, width = 45)
en2.place(x = 60, y = 45)

lab3 = tkinter.Label(top, text = "s1 TF")
lab3.place(x = 25, y = 85)
en3 = tkinter.Text(top, bd=1, font=('等线', 10), state="disable", width=18, height=5)
en3.place(x = 25, y = 110)

lab4 = tkinter.Label(top, text = "s2 TF")
lab4.place(x = 185, y = 85)
en4 = tkinter.Text(top, bd=1, font=('等线', 10), state="disable", width=18, height=5)
en4.place(x = 185, y = 110)

lab5 = tkinter.Label(top, text = "IDF")
lab5.place(x = 345, y = 85)
en5 = tkinter.Text(top, bd=1, font=('等线', 10), state="disable", width=18, height=5)
en5.place(x = 345, y = 110)

lab6 = tkinter.Label(top, text = "s1 TF.IDF")
lab6.place(x = 25, y = 185)
en6 = tkinter.Text(top, bd=1, font=('等线', 10), state="disable", width=18, height=5)
en6.place(x = 25, y = 220)

lab7 = tkinter.Label(top, text = "s2 TF.IDF")
lab7.place(x = 185, y = 185)
en7 = tkinter.Text(top, bd=1, font=('等线', 10), state="disable", width=18, height=5)
en7.place(x = 185, y = 220)

#按钮
b = tkinter.Button(top, text = "计算", width = 8)
b.place(x = 400, y = 15)

top.mainloop()
